home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / setpgrp.man < prev    next >
Encoding:
Text File  |  1989-04-11  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SETPGRP               C Library Procedures                SETPGRP
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      setpgrp - set process group
  10.  
  11. SSYYNNOOPPSSIISS
  12.      sseettppggrrpp((ppiidd,, ppggrrpp))
  13.      iinntt ppiidd,, ppggrrpp;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      _S_e_t_p_g_r_p sets the process group of the specified process _p_i_d
  17.      to the specified _p_g_r_p.  If _p_i_d is zero, then the call
  18.      applies to the current process.
  19.  
  20.      If the invoker is not the super-user, then the affected pro-
  21.      cess must have the same effective user-id as the invoker or
  22.      be a descendant of the invoking process.
  23.  
  24. RREETTUURRNN VVAALLUUEE
  25.      _S_e_t_p_g_r_p returns when the operation was successful.  If the
  26.      request failed, -1 is returned and the global variable _e_r_r_n_o
  27.      indicates the reason.
  28.  
  29. EERRRROORRSS
  30.      _S_e_t_p_g_r_p will fail and the process group will not be altered
  31.      if one of the following occur:
  32.  
  33.      [ESRCH]        The requested process does not exist.
  34.  
  35.      [EPERM]        The effective user ID of the requested pro-
  36.                     cess is different from that of the caller and
  37.                     the process is not a descendent of the cal-
  38.                     ling process.
  39.  
  40. SSEEEE AALLSSOO
  41.      getpgrp(2)
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0                May 9, 1985                          1
  64.  
  65.  
  66.  
  67.